<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	@Require
	<style>
		ul.entries .created {
			display: inline-block;
			width: 100px;
		}
		ul.entries a {
			display: inline-block;
			width: 250px;
		}
		
		ul.entries li {
			line-height: 2em;
			border-bottom: 1px dotted #838D7A;
		}
	</style>
</head>

<body>
	@Header(title="Welcome!")
	<div></div>
	
	@ShowIf(adminUser)
	<div id="infobox">
		<div id="page">
			<h2>Blog Entries</h2>

			<ul class="entries">
				@Repeat(items=blogEntries, var="blogEntry")
				<li>
					<div class="created">${blogEntry.created}</div>
					<a href="/admin/blogEntry/${blogEntry.id}">${blogEntry.title}</a>
				</li>
			</ul>
			
			<p>
				<a href="/admin/blogEntry/">New Blog Entry</a>
			</p>
		</div>
		<!--/page -->
		<div class="clear"></div>
	</div>
	<!--/infobox -->
	
	@Footer
	<div></div>
</body>
</html>